package net.homeftp.heimo.weddingwidget;

import net.homeftp.heimo.weddingwidget.ui.AboutDialog;
import android.util.Log;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;

public class WeddingWidgetActivity extends WeddingPreferenceControlActivity {
	private static final String TAG = "WeddingWidgetActivity";

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		MenuInflater inflater = getMenuInflater();
		inflater.inflate(R.menu.menu, menu);
		return true;
	}

	@Override
	public boolean onOptionsItemSelected(MenuItem item) {
		// Handle item selection
		switch (item.getItemId()) {
		case R.id.menu_info:
			Log.d(TAG, "menu_info()");
			AboutDialog dialog = new AboutDialog(this);
			dialog.show();
			return true;
		default:
			return super.onOptionsItemSelected(item);
		}

	}

}